/**
 * 
 */
package com.yonder.agenda.entity.generic;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;

/**
 * {@link AbstractEntity} class.
 * 
 * @author CosminS
 * 
 */
@MappedSuperclass
public abstract class AbstractEntity implements Serializable {

	/**
	 * Primary key.
	 */
	@Id
	@Column(name = "id", nullable = false)
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long id;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
}